﻿using BodaNetCommunications.Utilities.Results;

namespace BodaNetCommunications.Cores
{
    public interface ICommDevice
    {
        ConnectionOptions Options { get; }
        BodaResult Connect(ConnectionOptions connectionOptions);

        void Disconnect();

        bool IsConnected { get; }

        BodaResult SendMsgc(byte[] bytes, int timeout = 1500);

        BodaResult<byte> ReceiveMsg(int timeout = 2000, int bytesLen = 1024);

    }
}
